home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Media 22
/
PC MEDIA CD22.iso
/
share
/
udos
/
avfree13
/
avfree.doc
next >
Wrap
Text File
|
1995-09-19
|
9KB
|
153 lines
SOFTWARE : AVFree (Average Free in directory)
VERSION : First release, version 1.3
PURPOSE : This tool is to determine in no time or less the number of
files in a given (sub-)directory, their size and the mean
number of bytes per file for that subdirectory. It is now
extended with 4 clustersize calculations.
LIMITS : ■ It works on a 486 DX 40, with MS-DOS 5.00 & Desqview 2.42,
Lantastic 6.0
■ Output can be redirected. In fact with the option /V you
need a 160 colomns screen...
■ Takes no notice of any multi-task environment.
WARRENTY : None, due to the fact it is still freeware.
SYNTAX : AVFREE [<directory>] [/<option>]
<Directory> May contain a drive-letter. If omitted, the
current drive is assumed.
/<option> The currently only option is /V (verbose). This
option will gives additional calculation of
allocated space on 4 types of clustersizes.
Currently this clustersize is fixed to 2, 4, 8
and 16 kilobytes.
FUNCTION : I use this tool to get a rough idea of the contents of a
sub-directory and to pick-out the sub-directory which is
the largest and with the best occupation of the FAT-table.
When I want to move a directory to a hard-disk with a 16k
cluster-size, I don't want to have a lot of empty space,
(Slack) when I move a lot of small files. I'd rather choose
a sub-directory with large files.
EXAMPLES :
Due to the large file-size, I can NOT display within 80 coloms the 160
coloms output of the /v option.
AVFREE C: will give something like:
AvFree v.1.3 (* FreeWare by Go$oƒt *)
Subdirectory NrSD Files Used (byte) Density
---------------------------------------- ----- ------ ------------- ---------
C:\PCTOOLS 2 43 2,635,616 61,293
C:\DRIVERS NONE 16 1,222,027 76,376
C:\DV NONE 89 360,704 4,052
C:\QEMM NONE 35 475,678 13,590
C:\TP 20 126 2,482,778 19,704
C:\GAMES 6
C:\LANTASTI 1 38 1,382,714 36,387
C:\TEMP EMPTY
C:\DOS NONE 129 3,639,898 28,216
C:\MAIL NONE 44 1,164,735 26,471
C:\FD 3 55 1,012,784 18,414
---------------------------------------- ----- ------ ------------- ---------
Totals: 32 575 14,376,934 25,003
Legend:
NrSD Number of Sub-directories.
NONE : Files and no sub-directories.
EMPTY : No files and no sub-directories.
<number> : Number of sub-directories.
If after this number no other figures are present,
the current sub-directories holds only
sub-directories and no files.
Files Number of files in current sub-directory.
Used Total file-size of sub-directory.
Density Just a simple diviation of Used/Files.
AVFREE C:\PCTOOLS will give something like:
AvFree v.1.3 (* FreeWare by Go$oƒt *)
Subdirectory NrSD Files Used (byte) Density
---------------------------------------- ----- ------ ------------- ---------
C:\PCTOOLS\. 2 43 2,635,616 61,293
C:\PCTOOLS\.. 11 19 77,821 4,095
C:\PCTOOLS\SYSTEM NONE 61 3,025,655 49,600
C:\PCTOOLS\DATA NONE 48 385,435 8,029
---------------------------------------- ----- ------ ------------- ---------
Totals: 13 171 6,124,527 35,815
The '.' tells us the status of the 'root'-directory. Notice the
simularity between C:\PCTOOLS\. in this example and C:\PCTOOLS in the
previous example.
The '..' tells us the status of the 'parent' directory. The 11
sub-directories from the parent-directory are also shown.
The two special 'directories' are also added to the total, so keep in
mind that the totals are mostly figures.
Due to the large file-size, I can NOT display within 80 coloms the 160
coloms output of the /v option. So I give it simple is 160 coloms
version.
AVFREE C:\ /V will give something like this:
AvFree v.1.3 (* FreeWare by Go$oƒt *)
Clustersize of current disk (Bytes) : 2048
Directory NrSD Files Used (Bytes) Density 2Kb cluster (Bytes) 4Kb cluster (Bytes) 8Kb cluster (Bytes) 16Kb Cluster (Bytes)
--------------------------------------- ----- ------ ------------- -------- --------------------- --------------------- --------------------- ---------------------
C:\PCTOOLS NONE 1 4,045,7574,045,757 4,046,848 ( 0.03) 4,046,848 ( 0.03) 4,046,848 ( 0.03) 4,046,848 ( 0.03)
C:\DRIVERS NONE 13 222,773 17,136 235,520 ( 5.41) 253,952 (12.28) 294,912 (24.46) 360,448 (38.20)
C:\DV NONE 90 360,578 4,006 479,232 (24.76) 638,976 (43.57) 974,848 (63.01) 1,654,784 (78.21)
C:\QEMM NONE 35 476,512 13,614 518,144 ( 8.03) 552,960 (13.83) 655,360 (27.29) 901,120 (47.12)
C:\TP 39
C:\GAMES 8
C:\LANTASTI 1 37 1,381,694 37,343 1,423,360 ( 2.93) 1,458,176 ( 5.25) 1,564,672 (11.69) 1,785,856 (22.63)
C:\TEMP NONE 28 1,675,257 59,830 1,710,080 ( 2.04) 1,753,088 ( 4.44) 1,810,432 ( 7.47) 1,982,464 (15.50)
C:\MAIL 3
C:\FD 4 31 62,180 2,005 110,592 (43.78) 167,936 (62.97) 286,720 (78.31) 524,288 (88.14)
C:\DOS NONE 129 3,639,891 28,216 3,788,800 ( 3.93) 3,923,968 ( 7.24) 4,235,264 (14.06) 4,849,664 (24.95)
C:\TP7 6 5 60,924 12,184 67,584 ( 9.85) 69,632 (12.51) 81,920 (25.63) 114,688 (46.88)
C:\P16 NONE 16 1,063,138 66,446 1,079,296 ( 1.50) 1,093,632 ( 2.79) 1,130,496 ( 5.96) 1,196,032 (11.11)
C:\WINDOWS EMPTY
C:\VOYETRA 3 1 9,856 9,856 10,240 ( 3.75) 12,288 (19.79) 16,384 (39.84) 16,384 (39.84)
C:\PIM NONE 5 198,427 39,685 200,704 ( 1.13) 208,896 ( 5.01) 221,184 (10.29) 245,760 (19.26)
C:\QPEG 5 10 196,490 19,649 204,800 ( 4.06) 217,088 ( 9.49) 245,760 (20.05) 294,912 (33.37)
C:\AV NONE 17 1,072,425 63,083 1,095,680 ( 2.12) 1,118,208 ( 4.09) 1,171,456 ( 8.45) 1,261,568 (14.99)
C:\OT 3 28 1,376,220 49,150 1,409,024 ( 2.33) 1,449,984 ( 5.09) 1,523,712 ( 9.68) 1,703,936 (19.23)
C:\RP 2 33 2,060,789 62,448 2,107,392 ( 2.21) 2,154,496 ( 4.35) 2,252,800 ( 8.52) 2,457,600 (16.15)
--------------------------------------- ----- ------ ------------- -------- --------------------- --------------------- --------------------- ---------------------
Totals: 74 479 17,902,911 37,375 18,487,296 ( 3.16) 19,120,128 ( 6.37) 20,512,768 (12.72) 23,396,352 (23.48)
A extra line is added. This gives the clustersize of the examined harddisk.
The first 5 coloms are identical.
4 Additional coloms have a lot in common with the file-size, except is
for each file calculated how much allocated space it takes. The figure
between the brackets give a percentage of slack.
HISTORY: Initial release, version 1.0.
Second release, version 1.3.
Sub-releases were never available to the public.
They did only exist on my hard-disk.
■ /V option added.
AUTHEUR: Go$oƒt by Gert de Vente
SnailMail : Hakfort 352
1102 LA AMSTERDAM
Netherlands
NetMail : 2:280/805 @ fidonet.org
73:7310/10 @ ranet.org
206:206/6 @ disaster.org